package cn.com.gof.create.prototype;

import java.sql.Date;

/**
 * <p>Title: Client</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月6日 下午2:33:24
 */
public class Client {
	public static void main(String[] args) throws CloneNotSupportedException {
		
		Date date = new Date(1234567890L);
		Sheep s1 = new Sheep("haha", date);
		Sheep s2 = (Sheep) s1.clone();
		System.out.println(s1.getName());
		System.out.println(s1.getBirthDate());
		date = new Date(132456789L);
		s1.setBirthDate(new Date(132L));
		s1.setName("enen");
		System.out.println(s2.getName());
		System.out.println(s2.getBirthDate());
	}
}
